//引入我们自己封装过的axios
import axios from '../../axios'
const parkings ={
    //获取列表
    getParkingsById:function(params){
        return axios({
            url:"/parkings/getParkingsById",
            method:'get',
            params
        });
    },
    //新增车位
    addParkings:function(data){
        return axios({
            url:'/parkings/addParkings',
            method:'post',
            data,
        })
    },
    //删除
    deleteParkingsById:function(data){
        return axios({
            url:'/parkings/deleteParkingsById',
            method:'post',
            data
        })
    },
    //修改
   
    confirmChange:function(data){
        return axios({
            url:'/parkings/confirmChange',
            method:'post',
            data
        })
    },
    //修改状态
    updataAuditParkings: function (data) {
        return axios({
            url: '/parkings/updataAuditParkings',
            method: 'post',
            data
        })
    }
}
export default parkings;